<%@ page import="com.atnjupt.bean.Student" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: WIzarder
  Date: 2021/5/30
  Time: 18:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <table align="center" border="1" cellspacing="0" width="400">
        <tr>
            <th>编号</th>
            <th>姓名</th>
            <th>年龄</th>
            <th>手机号</th>
        </tr>
        <% List<Student> studentList = (List<Student>) request.getAttribute("studentKey");
            for(Student item:studentList){%>
            <tr>
                <td align="center"><%=item.getId()%></td>
                <td align="center"><%=item.getName()%></td>
                <td align="center"><%=item.getAge()%></td>
                <td align="center"><%=item.getPhone()%></td>
            </tr>
        <%}%>
    </table>
</body>
</html>
